package com.jhgsys.internal.hazard.service;

import com.jhgsys.internal.hazard.entity.HazardReportFile;
import com.jhgsys.internal.common.entity.QueryRequest;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 隐患报告附件 Service接口
 *
 * @author wanghw
 * @date 2024-08-20 09:23:07
 */
public interface IHazardReportFileService extends IService<HazardReportFile> {
    /**
     * 查询（分页）
     * @author wanghw
     * @date 2024-08-20 09:23:07
     * @param request QueryRequest
     * @param hazardReportFile hazardReportFile
     * @return IPage<HazardReportFile>
     */
    IPage<HazardReportFile> findHazardReportFilePage(QueryRequest request, HazardReportFile hazardReportFile);

    /**
     * 查询（所有）
     * @author wanghw
     * @date 2024-08-20 09:23:07
     * @param hazardReportFile hazardReportFile
     * @return List<HazardReportFile>
     */
    List<HazardReportFile> findHazardReportFileList(HazardReportFile hazardReportFile);

    /**
    * 根据ID查询
    * @author wanghw
    * @date 2024-08-20 09:23:07
    * @param id
    * @return HazardReportFile
    */
    HazardReportFile findHazardReportFileById(String id);

    /**
     * 新增
     * @author wanghw
     * @date 2024-08-20 09:23:07
     * @param hazardReportFile hazardReportFile
     */
    void createHazardReportFile(HazardReportFile hazardReportFile);

    /**
     * 修改
     * @author wanghw
     * @date 2024-08-20 09:23:07
     * @param hazardReportFile hazardReportFile
     */
    void updateHazardReportFile(HazardReportFile hazardReportFile);

    /**
     * 逻辑删除
     * @author wanghw
     * @date 2024-08-20 09:23:07
     * @param hazardReportFile hazardReportFile
     * @param hazardReportFileIds hazardReportFileIds
     */
    void deleteHazardReportFile(HazardReportFile hazardReportFile,String hazardReportFileIds);

    /**
    * 物理删除
    * @author wanghw
    * @date 2024-08-20 09:23:07
    * @param hazardReportFileIds hazardReportFileIds
    */
    void physicallyDeleteHazardReportFile(String hazardReportFileIds);
}
